package shiliu;

/**
 * Created by mc on 2016/8/5.
 */
/*
import sun.plugin2.message.Message;

import java.sql.*;
import java.util.*;

import static java.lang.System.out;

public class preparedstatement {
    private  conn;

    public static void main(String[] arges)throws ClassNotFoundException
    {


    }
    public void add(Message message){
        String url = "1";
        String user = "root";
        String passwd = "openhome";

        try(Connection conn = DriverManager.getConnection(url,user,passwd)) {
        } catch (SQLException e) {
            e.printStackTrace();
        }
        PrepareStatmeng statement = conn.prepareStatement("insert into t_mo(name,email,msg) Values (?,?,?)"){
            statement.setString(1,message.getName());
        }

    }
}
*/